package collage.aminpage;

import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

public class Main_ProfesserInfo extends JPanel {

	public Main_ProfesserInfo() {
		JScrollPane pinfo = new JScrollPane();
		pinfo.setPreferredSize( new Dimension( 750, 500 ) );
		
		add(pinfo);

		
		DefaultTableModel model = new DefaultTableModel(){
			
			@Override
			public boolean isCellEditable(int row, int column) {
				
				return false;
			}
			
			};
			
			String title[] = { "교수번호", "이름", "담당학과", "연락처", "등등" };
			
			
		model.setColumnIdentifiers(title);
		model.addRow( new String[]{  "혜성", " 붉은것은", "3배더", "빠릅니다", "TRANS_ARMS"} );
		model.addRow( new String[]{  "혜성", " 붉은것은", "3배더", "빠릅니다", "TRANS_ARMS"} );
		model.addRow( new String[]{  "혜성", " 붉은것은", "3배더", "빠릅니다", "TRANS_ARMS"} );
		model.addRow( new String[]{  "혜성", " 붉은것은", "3배더", "빠릅니다", "TRANS_ARMS"} );
		model.addRow( new String[]{  "혜성", " 붉은것은", "3배더", "빠릅니다", "TRANS_ARMS"} );
		
		JTable table = new JTable();
		table.setModel(model);
		
		pinfo.setViewportView( table );
		
		
		
		
		
		
		
	}
	
	private void serchProfessor(){
				
		
	}
	
	private void veiwInformation(){
		
		
		
		
	}
	
	private class table extends JTable {
	
		
	}
	
} // class


